import request from '@/utils/request'

// 查询年度完成率列表
export function listYearPercentageComplete(query) {
  return request({
    url: '/erp/yearPercentageComplete/list',
    method: 'get',
    params: query
  })
}

// 查询年度完成率详细
export function getYearPercentageComplete(id) {
  return request({
    url: '/erp/yearPercentageComplete/' + id,
    method: 'get'
  })
}

// 新增年度完成率
export function addYearPercentageComplete(data) {
  return request({
    url: '/erp/yearPercentageComplete',
    method: 'post',
    data: data
  })
}

// 修改年度完成率
export function updateYearPercentageComplete(data) {
  return request({
    url: '/erp/yearPercentageComplete',
    method: 'put',
    data: data
  })
}

// 删除年度完成率
export function delYearPercentageComplete(id) {
  return request({
    url: '/erp/yearPercentageComplete/' + id,
    method: 'delete'
  })
}
